package com.louzhu.gulimall.auth.feign;

import com.louzhu.common.utils.R;
import com.louzhu.gulimall.auth.vo.SocialUser;
import com.louzhu.gulimall.auth.vo.UserLoginVo;
import com.louzhu.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 远程会员服务调用接口
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    /**
     * 用户注册
     */
    @RequestMapping("member/member/register") // member
    R register(@RequestBody UserRegisterVo registerVo);
    /**
     * 用户登录
     */
    @RequestMapping("member/member/login") // member
    R login(@RequestBody UserLoginVo loginVo);
    /**
     * 社交用户登录
     */
    @RequestMapping("member/member/oauth2/login") // member
    R login(@RequestBody SocialUser socialUser);
}
